fc0e5e7d86ebb479983180be07d6f30519ec0b4f,SPiDSDK/src/com/schibsted/android/sdk/keychain/SPiDKeychain.java,SPiDKeychain,decryptAccessTokenFromSharedPreferences,#Context#String#,58

Before Change


                String userId = decryptString(context, encryptionKey, secure.getString("user_id", ""));
                token = new SPiDAccessToken(accessToken, expiresAt, refreshToken, userId);
            } catch (GeneralSecurityException e) {
                clearAccessTokenFromSharedPreferences(context);
                throw new SPiDKeychainException("GeneralSecurityException", e);
            } catch (UnsupportedEncodingException e) {
                clearAccessTokenFromSharedPreferences(context);

After Change


                clearAccessTokenFromSharedPreferences();
                throw new SPiDKeychainException("GeneralSecurityException", e);
            } catch (UnsupportedEncodingException e) {
                clearAccessTokenFromSharedPreferences();
                throw new SPiDKeychainException("UnsupportedEncodingException", e);
            }
            return token;